package com.ztjy.purchase.dao;

import com.ztjy.bean.CFirm;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Mapper
@Repository
public interface CFirmDao {
    /**
     * 查询所有
     * @param firm
     * @return
     */
    List<CFirm> findAll(CFirm firm);

    /**
     * 添加
     * @param cFirm
     * @return
     */
    int insertSelective(CFirm cFirm);

    /**
     * 修改
     * @param cFirm
     * @return
     */
    int updateByPrimaryKeySelective(CFirm cFirm);

    /**
     * 根据id查询
     * @param id
     * @return
     */
    CFirm findByIdCFirm(@Param("id") Integer id);

}